package org.dbi.beans;

import org.dbi.logger.ErrorLogger;

public class Reference {
	private String naam = "";
	private AttributeGroup fromGroup = null;
	private AttributeGroup toGroup = null;

	private ErrorLogger logger = ErrorLogger.getLogger(getClass().getName());

	public Reference(String naam, AttributeGroup fromGroup, AttributeGroup toGroup) {
		this.naam = naam;
		this.fromGroup = fromGroup;
		this.toGroup = toGroup;

		logger.info("Reference gemaakt met" + naam + " met fromGroup " + fromGroup.getNaam() + " en toGroup " + toGroup.getNaam());
	}

	public String getNaam() {
		return naam;
	}

	public AttributeGroup getFromGroup() {
		return fromGroup;
	}

	public AttributeGroup getToGroup() {
		return toGroup;
	}

}
